package com.greenhou.io;

import java.io.InputStream;

/**
 * @ClassName Resources
 * @Description 读取配置文件到io流
 * @Author YR
 * @Date 2020/6/5 14:24
 * @Version 1.0
 */
public class Resources {
    //根据配置文件路径，将配置文件加载成字节流，存到内存里边
    public static InputStream getResourceAsStream(String path){
        InputStream inputStream=Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
